Release 10.1A: OpenEdge Development:
Progress Dynamics Administration
Writing a dump program
This is a sample dump program using default code that you can use to export the contents of the
gsm_menu_structure_itemtable:
This program assumes that the data to be dumped is from a table that has an object ID field of data type decimal (
ObjFieldinclude file directive). The object ID’s mantissa is used to determine the site number of the data to be dumped. TheOutputFileinclude file directive provides a character string name for the file to be dumped. All dumped data is written to the first directory namedsitedatadumpthat can be found in thePROPATH. TheOutputTabledirective contains the name of the table to be exported.Using the default
sitedataprocout.iinclude file to provide all of the code is the easiest way to produce a dump program. This code automatically exports the specified data for all sites listed in thedumpconfig.txtfile to the dump files that are later read by a load program.If you must add any special customizations, you can use code based on the following example to dump the data:
The comments in the above code describe what must be in the code. Two parameters defined in
sitedatahdrout.iare passed to this procedure when it is called. The first is the site number for which data should be dumped in the mantissa of thepdSiteNodecimal field. The second is the table containing the dump file locations. It might be that your dump program requires more than one export file. Thedumpconfig.txtfile provides for this by allowing you to refer to the export file by the name you specify. For more information, see the "Creating a dumpconfig.txt file" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |